package com.ce.pms.custservice.model;

import com.ce.pms.common.model.SysInfo;
import com.ce.pms.house.model.HouseDomain;
import com.sitechasia.webx.core.model.IDomainObject;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="CE_OWNERS_VISIT")
public class OwnerVisitDO
  implements IDomainObject
{

  @Id
  @GeneratedValue
  @Column(name="OWNERS_VISIT_ID")
  private Long keyword;

  @ManyToOne
  @JoinColumn(name="HOUSE_ID", nullable=false)
  private HouseDomain house;

  @Column(name="VALIDITY", nullable=false)
  private String validity;

  @Column(name="OWNERS", length=100)
  private String owners;

  @Column(name="MODE", length=50)
  private String mode;

  @Temporal(TemporalType.TIMESTAMP)
  @Column(name="VISIT_DATETIME")
  private Date visitTime;

  @Column(name="RECORD", length=1000)
  private String record;

  @Temporal(TemporalType.TIMESTAMP)
  @Column(name="RECORDE_DATETIME")
  private Date recordDate;

  @Column(name="RECORDER", length=50)
  private String recorder;

  @Column(name="REMARK", length=500)
  private String remark;

  @Embedded
  private SysInfo sysInfo;

  public OwnerVisitDO(Long keyword)
  {
    this.keyword = keyword;
  }

  public HouseDomain getHouse() {
    return this.house;
  }

  public void setHouse(HouseDomain house) {
    this.house = house;
  }

  public String getValidity() {
    return this.validity;
  }

  public void setValidity(String validity) {
    this.validity = validity;
  }

  public Long getKeyword() {
    return this.keyword;
  }

  public void setKeyword(Long keyword) {
    this.keyword = keyword;
  }

  public String getMode() {
    return this.mode;
  }

  public void setMode(String mode) {
    this.mode = mode;
  }

  public String getOwners() {
    return this.owners;
  }

  public void setOwners(String owners) {
    this.owners = owners;
  }

  public String getRecord() {
    return this.record;
  }

  public void setRecord(String record) {
    this.record = record;
  }

  public Date getRecordDate() {
    return this.recordDate;
  }

  public void setRecordDate(Date recordDate) {
    this.recordDate = recordDate;
  }

  public String getRecorder() {
    return this.recorder;
  }

  public void setRecorder(String recorder) {
    this.recorder = recorder;
  }

  public String getRemark() {
    return this.remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public SysInfo getSysInfo() {
    return this.sysInfo;
  }

  public void setSysInfo(SysInfo sysInfo) {
    this.sysInfo = sysInfo;
  }

  public Date getVisitTime() {
    return this.visitTime;
  }

  public void setVisitTime(Date visitTime) {
    this.visitTime = visitTime;
  }
}